package org.ccay.excel.importer.service.impl.internal;

import java.util.List;
import java.util.Map;

/**
 * VO转换器
 * 	
 * @author chaowangbang
 * @since Mar 22, 2012
 */
public interface IVOConverter {

	/** 
	 * 将一组数据设置到VO属性中。
	 * 	
	 * @author chaowangbang
	 * @since Mar 22, 2012
	 * @param voProperties VO的属性列表
	 * @return
	 * @throws ConvertException
	 */
	public Object convert(Map<String, Object> voProperties) throws ConvertException ;
	
	/**
	 * 将对象的属性设置到map中
	 * @param voProperties
	 * @return
	 * @throws ConvertException
	 */
	public List<Object> reflect(Object instance,String[] voProperties)throws ConvertException ;
}
